<div id="editMachineModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
  aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-body">
        <h3 class="m-t-none m-b ">修改设备管理</h3>
        <div class="ibox-content">
          <div>
            <div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">设备编码</label>
                <div class="col-sm-4">
                  <input v-model="editMachineInfo.machineCode" type="text" placeholder="必填，请填写设备编码" class="form-control">
                </div>
                <label class="col-sm-2 col-form-label">设备版本</label>
                <div class="col-sm-4">
                  <input v-model="editMachineInfo.machineVersion" type="text" placeholder="必填，请填写设备版本"
                    class="form-control">
                </div>
              </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">设备类型</label>
                <div class="col-sm-4">
                  <select class="custom-select" v-model="editMachineInfo.typeId"
                    @change="setAddMachineTypeCd(editMachineInfo.typeId)">
                    <option selected disabled value="">必填，请选择设备类型</option>
                    <option v-for="(item,index) in editMachineInfo.machineTypes" :key="index" :value="item.typeId">
                      {{item.machineTypeName}}</option>
                  </select>
                  </select>
                </div>
                <label class="col-sm-2 col-form-label">小区</label>
                <div class="col-sm-4">
                  <select class="custom-select" v-model="editMachineInfo.govCommunityId">
                    <option selected disabled value="">请选择所属小区</option>
                    <option v-for="(item,index) in editMachineInfo.govCommunitys" :value="item.govCommunityId">
                      {{item.communityName}}</option>
                  </select>
                </div>
              </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">大屏显示</label>
                <div class="col-sm-10">
                  <select class="custom-select" v-model="editMachineInfo.isShow">
                    <option selected disabled value="">请选择是否大屏显示</option>
                    <option value="Y">显示</option>
                    <option value="N">不显示</option>
                  </select>
                  <span style="color: brown;">请根据大屏显示情况选择可以显示几个，目前为4块屏幕</span>
                </div>
              </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">设备名称</label>
                <div class="col-sm-4">
                  <input v-model="editMachineInfo.machineName" type="text" placeholder="必填，请填写设备名称" class="form-control">
                </div>
                <label class="col-sm-2 col-form-label">授权码</label>
                <div class="col-sm-4">
                  <input v-model="editMachineInfo.authCode" type="text" placeholder="必填，请填写授权码" class="form-control">
                </div>
              </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">设备IP</label>
                <div class="col-sm-4">
                  <input v-model="editMachineInfo.machineIp" type="text" placeholder="必填，请填写设备IP" class="form-control">
                </div>
                <label class="col-sm-2 col-form-label">设备mac</label>
                <div class="col-sm-4">
                  <input v-model="editMachineInfo.machineMac" type="text" placeholder="必填，请填写设备mac" class="form-control">
                </div>
              </div>
              <div class="ibox-content">
                <button class="btn btn-primary float-right" type="button" v-on:click="editMachine()"><i
                    class="fa fa-check"></i>&nbsp;保存</button>
                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                  data-dismiss="modal">取消</button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>